<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

//Route::get('/', function () {
//    return view('welcome');
//});
Route::get('login',['uses'=>'Home\IndexController@login','as'=>'login']);
Route::post('login','Home\IndexController@login');
Route::get('register','Home\IndexController@register');
Route::post('register','Home\IndexController@register');
Route::get('index',['uses'=>'Home\IndexController@index','as'=>'index']);
Route::get('error','Home\ErrorController@error');
Route::get('student/show','Home\StudentController@show');
Route::get('student/update','Home\StudentController@update');